package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 老师查看校区的功能权限【例：某个功能需要设置对应老师可以看哪些校区的数据】
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-26
 */
@Data
@TableName("permission_school_teacher")
@ApiModel(value = "PermissionSchoolTeacher对象", description = "老师查看校区的功能权限【例：某个功能需要设置对应老师可以看哪些校区的数据】")
public class PermissionSchoolTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("老师id")
    private Long teacherId;

    @ApiModelProperty("1：人事数据")
    private Integer type;

    @ApiModelProperty("1校长，2主管")
    private Integer positionType;

    @ApiModelProperty("科目 0行政 1英语 2数学 3物理")
    private Long subjectsId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    private Integer deleted;


}
